﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Gx.Model.Entity
{
    [Table("LK_Dictionary")] 
    public class LKDictionary
    {
        [Key]
        private int _id;
        /// <summary>
        /// Id
        /// </summary>
        [Column("Id")]
        public int Id 
        {
            get
            {
                return _id;
            }
            set { _id = value; }
        }
        
        
        private string _dicName;
        /// <summary>
        /// 字典名称
        /// </summary>
        [Column("DicName")]
        public string DicName 
        {
            get
            {
                if(string.IsNullOrWhiteSpace(_dicName))
                    _dicName=string.Empty;
                return _dicName;
            }
            set { _dicName = value; }
        }
        
        
        private string _dicValue;
        /// <summary>
        /// 字典值
        /// </summary>
        [Column("DicValue")]
        public string DicValue 
        {
            get
            {
                if(string.IsNullOrWhiteSpace(_dicValue))
                    _dicValue=string.Empty;
                return _dicValue;
            }
            set { _dicValue = value; }
        }
        
        
        private string _dicType;
        /// <summary>
        /// 字典类型
        /// </summary>
        [Column("DicType")]
        public string DicType 
        {
            get
            {
                if(string.IsNullOrWhiteSpace(_dicType))
                    _dicType=string.Empty;
                return _dicType;
            }
            set { _dicType = value; }
        }
        
        
        private bool _isDeleted;
        /// <summary>
        /// 是否删除
        /// </summary>
        [Column("IsDeleted")]
        public bool IsDeleted 
        {
            get
            {
                return _isDeleted;
            }
            set { _isDeleted = value; }
        }
        
        
        private System.DateTime _createTime;
        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("CreateTime")]
        public System.DateTime CreateTime 
        {
            get
            {
                if (_createTime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _createTime;
            }
            set { _createTime = value; }
        }
        
        
    }
}

